package com.atguigu.springbootmybatisplusrabbitmq.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "t_user")
public class User {
    @TableId (type= IdType.AUTO,value="uid")//雪花算法的主键ID
    private Long uid;
    private String name;
    @TableField(fill = FieldFill.INSERT)
    private Integer age;
    private String email;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @TableLogic
    @TableField(value="is_deleted")
    private Integer deleted;
}
